// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取 视听监控 分页  POST */
export async function pageMonitorLinkage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<MonitorLinkageData.LinkagePage[]>>(
    '/monitor/link/dispose/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 视听监控 分页 数据信息  POST */
export async function pageMonitorLinkageStatistics(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<MonitorLinkageData.LinkagePageStatistics[]>>(
    '/monitor/Linkage/page/statistics',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 视听监控 详情 数据信息  POST */
export async function selectMonitorLinkage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<MonitorLinkageData.LinkageSelect>>(
    '/monitor/video/record/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取  媒体列表  POST */
export async function mediaList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<MonitorLinkageData.LinkageSelect>>(
    '/monitor/media/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 平台列表  POST */
export async function platformList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<MonitorLinkageData.LinkageSelect>>(
    '/monitor/platform/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 处理  POST */
export async function monitorLinkageUpdate(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<MonitorLinkageData.LinkageSelect>>(
    '/monitor/link/dispose/update',
    {
      method: 'POST',
      data: options || {},
    },
  );
}